import { createApp } from 'vue';
import './style.css';
import App from './App.vue';

createApp(App).mount('#app');

// interface Obj1 {
//     a: string;
//     b: number;
// }
// interface Obj2 {
//     b: boolean;
//     c: string[];
// }
// type keysUnion = keyof (Obj1 | Obj2); //结果为'b'
// type keysIntersection = keyof Obj1 | keyof Obj2; // 结果为 "a" | "b" | "c"
// type keysUnion1 = { [K in keyof (Obj1 | Obj2)]: (Obj1 | Obj2)[K] };
// type arr = [1, 2, 3, 4];
// type GetFirst<Arr extends unknown[]> = Arr extends [infer First, ...unknown[]] ? First : never;
// type C = GetFirst<arr>;
// type GetLast<Arr extends unknown[]> = Arr extends [...unknown[], infer Last] ? Last : never;
// type LastOne = GetLast<arr>
